<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:sf="http://www.springframework.org/tags/faces"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<div class="hided" id="nav_manual">
		<div class="nav1">
		<p:menubar>
			<p:submenu>
				<f:facet name="label">
					<p:menuitem value="Home" url="/web/main" styleClass="font2" />
				</f:facet>
			</p:submenu>
			<p:submenu>
				<f:facet name="label">
					<p:menuitem value="Search" url="/web/search" styleClass="font2" />
				</f:facet>
			</p:submenu>
			<p:submenu>
				<f:facet name="label">
					<p:menuitem value="Toolbar" url="/web/toolbar" styleClass="font2" />
				</f:facet>
			</p:submenu>
			<p:submenu>
				<f:facet name="label">
					<p:menuitem value="Dropdown Menu" url="/web/dropdownMenu" styleClass="font2" />
				</f:facet>
			</p:submenu>
			<p:submenu>
                <f:facet name="label">
                    <p:menuitem value="Panel" url="/web/panel" styleClass="font2" />
                </f:facet>
            </p:submenu>
            
            <sec:authorize ifAnyGranted="ROLE_SUPERVISOR">
	           <p:submenu>
					<f:facet name="label">
						<p:menuitem value="User Management" url="/web/admin" styleClass="font2"/>
					</f:facet>
				</p:submenu>
			</sec:authorize>
			<sec:authorize ifAnyGranted="ROLE_SUPERVISOR, ROLE_USER">
				<p:submenu>
					<f:facet name="label">
						<p:menuitem value="Logout" url="/web/logout" styleClass="font2"/>
					</f:facet>
				</p:submenu>
				
			</sec:authorize>
			
		</p:menubar>
		</div>	    
	</div>

</ui:composition>